import request from "@/utils/axios";

export function getRouter(data) {
	return request({
		path: "/getRouter",
		data
	});
}
export function getRouterSystem(data) {
	return request({
		path: "/getRouterSystem",
		data
	});
}
export function getUserInfo(data) {
	return request({
		path: "/getUserInfo",
		data

	});
}
export function getRoles(data) {
	return request({
		path: "/getRoles",
		data
	});
}
export function getRolesAll(data) {
	return request({
		path: "/getRolesAll",
		data
	});
}
export function addRoles(data) {
	return request({
		path: "/addRoles",
		data,
	});
}
export function upRoles(data) {
	return request({
		path: "/upRoles",
		data,
	});
}
export function delRoles(data) {
	return request({
		path: "/delRoles",
		data,
	});
}

export function addMenu(data) {
	return request({
		path: "/addMenu",
		data,
	});
}
export function changeMenu(data) {
	return request({
		path: "/changeMenu",
		data,
	});
}
export function delMenu(data) {
	return request({
		path: "/delMenu",
		data,
	});
}
export function getUser(data) {
	return request({
		path: "/getUser",
		data,
	});
}

export function addUser(data) {
	return request({
		path: "/addUser",
		data,
	});
}

export function upUser(data) {
	return request({
		path: "/upUser",
		data,
	});
}
export function upUserPwd(data) {
	return request({
		path: "/upUserPwd",
		data,
	});
}
export function delUser(data) {
	return request({
		path: "/delUser",
		data,
	});
}
export function upTheme(data) {
	return request({
		path: "/upTheme",
		data,
	});
}
export function login(data) {
	return request({
		path: "/login",
		data,
	});
}

export function addMore(data) {
	return request({
		path: "/addMore",
		data,
	});
}

export function getMore(data) {
	return request({
		path: "/getMore",
		data,
	});
}
export function getMoreAll(data) {
	return request({
		path: "/getMoreAll",
		data,
	});
}
export function upMore(data) {
	return request({
		path: "/upMore",
		data,
	});
}
export function delMore(data) {
	return request({
		path: "/delMore",
		data,
	});
}

export function addDict(data) {
	return request({
		path: "/addDict",
		data,
	});
}

export function getDict(data) {
	return request({
		path: "/getDict",
		data,
	});
}

export function upDict(data) {
	return request({
		path: "/upDict",
		data,
	});
}

export function delDict(data) {
	return request({
		path: "/delDict",
		data,
	});
}

export function getDictAll(data) {
	return request({
		path: "/getDictAll",
		data,
	});
}

export function addDictItem(data) {
	return request({
		path: "/addDictItem",
		data,
	});
}

export function getDictItem(data) {
	return request({
		path: "/getDictItem",
		data,
	});
}

export function upDictItem(data) {
	return request({
		path: "/upDictItem",
		data,
	});
}

export function delDictItem(data) {
	return request({
		path: "/delDictItem",
		data,
	});
}
//根据类型查询字典
export function getDictType(type="") {
	return request({
		path: "/getDictType",
		data:{type},
	});
}
export function getFaultList(data) {
	return request({
		path: "/getFaultList",
		data,
	});
}
export function getStatus(data) {
	return request({
		path: "/getStatus",
		data,
	});
}
export function getFq(data) {
	return request({
		path: "/getFq",
		data,
	});
}
export function getBllx(data) {
	return request({
		path: "/getBllx",
		data,
	});
}
export function getSsbz(data) {
	return request({
		path: "/getSsbz",
		data,
	});
}
export function addFault(data) {
	return request({
		path: "/addFault",
		data,
	});
}
export function upFault(data) {
	return request({
		path: "/upFault",
		data,
	});
}
export function delFault(data) {
	return request({
		path: "/delFault",
		data,
	});
}
export function getAlarmList(data) {
	return request({
		path: "/getAlarmList",
		data,
	});
}
export function addAlarm(data) {
	return request({
		path: "/addAlarm",
		data,
	});
}
export function upAlarm(data) {
	return request({
		path: "/upAlarm",
		data,
	});
}
export function delAlarm(data) {
	return request({
		path: "/delAlarm",
		data,
	});
}
export function getJcsList(data) {
	return request({
		path: "/getJcsList",
		data,
	});
}
export function getJcs(data) {
	return request({
		path: "/getJcs",
		data,
	});
}
export function getJcsNode(data) {
	return request({
		path: "/getJcsNode",
		data,
	});
}
export function upJcsNode(data) {
	return request({
		path: "/upJcsNode",
		data,
	});
}

export function addJcs(data) {
	return request({
		path: "/addJcs",
		data,
	});
}
export function insertJcsNode(data) {
	return request({
		path: "/insertJcsNode",
		data,
	});
}

export function upJcs(data) {
	return request({
		path: "/upJcs",
		data,
	});
}
export function delJcs(data) {
	return request({
		path: "/delJcs",
		data,
	});
}
export function addPic(data) {
	return request({
		path: "/upload",
		data,
		headers: {
            'Content-Type': 'multipart/form-data',
          },
	});
}
export function delPic(data) {
	return request({
		path: "/delPic",
		data,
	});
}




export function upPart(data) {
	return request({
		path: "/upPart",
		data,
	});
}
export function delPart(data) {
	return request({
		path: "/delPart",
		data,
	});
}
export function getPartList(data) {
	return request({
		path: "/getPartList",
		data,
	});
}
export function addPart(data) {
	return request({
		path: "/addPart",
		data,
	});
}

export function upZsgl(data) {
	return request({
		path: "/upZsgl",
		data,
	});
}
export function delZsgl(data) {
	return request({
		path: "/delZsgl",
		data,
	});
}
export function getZsglList(data) {
	return request({
		path: "/getZsglList",
		data,
	});
}
export function addZsgl(data) {
	return request({
		path: "/addZsgl",
		data,
	});
}

export function addFile(data) {
	return request({
		path: "/uploadFile",
		data,
		headers: {
            'Content-Type': 'multipart/form-data',
          },
	});
}
// export function delFile(data) {
// 	return request({
// 		path: "/delFile",
// 		data,
// 	});
// }